<?php
!defined('APP_NAME') && exit;

switch ($_SERVER['HTTP_HOST']) {
    case 'localhost': {
        $db_name = 'career';
        $db_user = 'root';
        $db_pwd  = '';
        break;
    }
        
    default: {
        $db_name = 'career';
        $db_user = 'joboto';
        $db_pwd  = 'passw0d%T$R#E@W!Q';
        break;
    }
}

return array(
    'URL_MODEL'            => URL_PATHINFO,
    'DB_TYPE'              => 'mysql',
    'DB_HOST'              => 'localhost',
    'DB_NAME'              => $db_name,
    'DB_USER'              => $db_user,
    'DB_PWD'               => $db_pwd,
    'DB_PORT'              => '3306',
    'DB_PREFIX'            => 'joboto_',

    'COOKIE_EXPIRE'        => 0,   // Cookie有效期
    'COOKIE_DOMAIN'        => '',  // Cookie有效域名
    'COOKIE_PATH'          => '/', // Cookie路径
    'COOKIE_PREFIX'        => '',  // Cookie前缀 避免冲突

    'LOG_RECORD'           => TRUE,
    'LOG_EXCEPTION_RECORD' => TRUE,
    'LOG_LEVEL'            => 'EMERG,ALERT,CRIT,ERR,WARN',
);
